#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import testrecord_blueprint
from api.testRecordResource.testRecordResource import TestRecordResource
from api.testRecordResource.testRecordOtherResource import TestRecordOtherResource

api = Api(testrecord_blueprint)

api.add_resource(TestRecordResource, '/testRecord/<test_record_id>', '/testRecord', endpoint='TestRecord')


@testrecord_blueprint.route('/testrecord/update/<test_record_id>', methods=['PUT'], endpoint='TestRecordUpdate')
def update(test_record_id):
    return TestRecordOtherResource.sensitive_update(test_record_id)
